﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="editGroupMessage.aspx.cs" Inherits="WeiXinPF.Web.admin.wxRule.groupMessage.editGroupMessage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>编辑文本回复</title>
    <script type="text/javascript" src="../../../scripts/jquery/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="../../../scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" src="../../../scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
    <script type="text/javascript" src="../../../scripts/datepicker/WdatePicker.js"></script>
    <script type="text/javascript" src="../../../scripts/swfupload/swfupload.js"></script>
    <script type="text/javascript" src="../../../scripts/swfupload/swfupload.queue.js"></script>
    <script type="text/javascript" src="../../../scripts/swfupload/swfupload.handlers.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../editor/kindeditor-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../editor/lang/zh_CN.js"></script>
    <script type="text/javascript" src="../../js/layout.js"></script>
    <link href="../../skin/default/style.css" rel="stylesheet" type="text/css" />
    <link href="../../skin/mystyle.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            //初始化表单验证
            $("#form1").initValidform();

            //初始化上传控件
            $(".upload-img").each(function () {
                $(this).InitSWFUpload({ sendurl: "../../tools/upload_ajax.ashx", flashurl: "../../scripts/swfupload/swfupload.swf" });
            });
            $(".upload-album").each(function () {
                $(this).InitSWFUpload({ btntext: "批量上传", btnwidth: 66, single: false, water: true, thumbnail: true, filesize: "2048", sendurl: "../../tools/upload_ajax.ashx", flashurl: "../../scripts/swfupload/swfupload.swf", filetypes: "*.jpg;*.jpge;*.png;*.gif;" });
            });
            $(".attach-btn").click(function () {
                showAttachDialog();
            });
            //设置封面图片的样式
            $(".photo-list ul li .img-box img").each(function () {
                if ($(this).attr("src") == $("#hidFocusPhoto").val()) {
                    $(this).parent().addClass("selected");
                }
            });

        });
    </script>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="wenBenList.aspx" class="back"><i></i><span>返回列表页</span></a>
            <i class="arrow"></i>
            <span>编辑群消息</span>
        </div>
        <div class="line10"></div>
        <!--/导航栏-->

        <div class="tab-content">
            <dl>
                <dt>消息类型</dt>
                <dd>
                    <div class="rule-multi-radio">
                        <asp:RadioButtonList ID="rblisLikeSearch" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="text" Selected="True">文本消息</asp:ListItem>
                            <asp:ListItem Value="mpnews">图文消息</asp:ListItem>
                            <asp:ListItem Value="voice">语音消息</asp:ListItem>
                            <asp:ListItem Value="music">音乐消息</asp:ListItem>
                            <asp:ListItem Value="image">图片消息</asp:ListItem>
                            <asp:ListItem Value="video">视频消息</asp:ListItem>
                            <asp:ListItem Value="wxcard">卡券消息</asp:ListItem>
                        </asp:RadioButtonList>
                    </div>

                </dd>
            </dl>
            <dl>
                <dt>消息名称</dt>
                <dd>
                    <asp:TextBox ID="txtrContent" runat="server" CssClass="input normal" datatype="*1-1000" sucmsg=" " nullmsg="内容或简介"></asp:TextBox>
                    <span class="Validform_checktip">*</span></dd>
            </dl>
            <dl runat="server" id="content">
                <dt>消息内容</dt>
                <dd>
                    <asp:TextBox ID="txtMediaUrl" runat="server" CssClass="input normal upload-path" />
                    <div class="upload-box upload-audio"></div>
                    <span class="Validform_checktip">*支持mp3、wma、wav、amr格式，语音大小不超过5M，长度不超过60秒！</span>
                </dd>
            </dl>
            <dl runat="server" id="articleList">
                <dt>图文列表</dt>
                <dd>
                    <asp:Repeater ID="rptList" runat="server">
                        <HeaderTemplate>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                                <thead>
                                    <tr>
                                        <th width="5%">选择</th>
                                        <th width="20%">消息名称</th>
                                        <th>创建时间</th>
                                        <th width="20%">消息接受范围</th>
                                        <th width="10%">是否发送</th>
                                        <th>发送时间</th>
                                        <th>发送者</th>
                                        <th width="16%">操作</th>
                                    </tr>
                                </thead>
                                <tbody class="ltbody">
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr class="td_c">
                                <td>
                                    <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Style="vertical-align: middle;" />
                                    <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                                </td>
                                <td>
                                    <asp:Image ID="imgIsLikeSearch" runat="server" ImageUrl="~/admin/skin/default/wan.png" ToolTip='<%#Eval("isLikeSearch")%>' />
                                    <%# Eval("reqKeywords") %>
                                </td>
                                <td>
                                    <div class="btn-group" role="group" aria-label="...">
                                        <a class="btn btn-default  operator" onclick='showGuiZeDialog(<%#Eval("id")%>);' href="javascript:;">修改</a>
                                        <a class="btn btn-default  operator" href='tuwenMgr.aspx?rid=<%#Eval("id") %>'>编辑内容</a>
                                    </div>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"4\">暂无记录</td></tr>" : ""%>
                 </tbody>
                </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </dd>
            </dl>
        </div>
        <!--/内容-->

        <!--工具栏-->
        <div class="page-footer">
            <div class="btn-list">
                <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" OnClick="btnSubmit_Click" />
                <a href="wenBenList.aspx"><span class="btn yellow">返回上一页</span></a>

            </div>
            <div class="clear"></div>
        </div>
        <!--/工具栏-->
    </form>
</body>
</html>
